<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main"/>
    <g:set var="entityName" value="${message(code: 'account.label', default: 'Account')}"/>
    <title>机构清退信息编辑</title>
</head>

<body>
<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right navFloatRight">
                <ol class="hbreadcrumb breadcrumb">
                    <li>CINDATA PLS</li>
                    <li class="active">
                        <span>机构清退信息编辑</span>
                    </li>
                </ol>
            </div>
            <h2 class="font-light m-b-xs">
                机构清退信息编辑
            </h2>
        </div>
    </div>
</div>

<g:form action="retreatAccountUpdate" resource="${this.account}">
    <div class="content animate-panel">
        <div class="row">
            <div class="hpanel hblue">
                <div class="panel-heading">
                    机构清退信息
                </div>

                <g:hiddenField name="code" value="${params.code}" />
                <g:hiddenField name="targetUri" value="${params.targetUri}"/>
                <div class="panel-body form-horizontal">
                    <g:if test="${flash.message}">
                        <div class="message alert alert-info" role="status">${flash.message}</div>
                    </g:if>
                    <g:hasErrors bean="${this.account}">
                        <ul class="errors" role="alert">
                            <g:eachError bean="${this.account}" var="error">
                                <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message
                                        error="${error}"/></li>
                            </g:eachError>
                        </ul>
                    </g:hasErrors>
                    <div class="form-group">
                        <label class="col-md-5 control-label">机构名称</label>
                        <div class="col-md-3">
                            <span class="cont">${this.account?.name}</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-5 control-label">机构地址</label>
                        <div class="col-md-3">
                            <span class="cont">${this.account?.address}</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-5 control-label">企业法人</label>
                        <div class="col-md-3">
                            <span class="cont">${this.account?.fullName}</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-5 control-label">经营状态</label>
                        <div class="col-md-3">
                            <g:select class="form-control m-b" name="operatingState" id="operatingState" from="${com.cindata.Account.constrainedProperties.operatingState.inList}" value="${this?.account?.operatingState}"
                                  noSelection="${['': '请选择经营状态']}"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-5 control-label ">清退原因</label>
                        <div class="col-md-3">
                            <g:textArea  name="retreatResult" id="retreatResult"  value="${this.account?.retreatResult}" class="form-control textarea" rows="5" cols="5" placeholder="请输入清退原因"/>
                        </div>
                    </div>
                    %{--<div class="form-group">--}%
                        %{--<label class="col-md-5 control-label is-required">工作流</label>--}%
                        %{--<div class="col-md-3">--}%
                            %{--<g:select class="form-control m-b" name="retreatWorkflow" id="retreatWorkflow" from="${com.cindata.Workflow.findAllByType(com.cindata.dictionary.WorkflowType.findByName('机构'))}" optionValue="name" optionKey="id" value="${this.account?.retreatWorkflow?.id}" noSelection="${['': '请选择工作流']}"/>--}%
                        %{--</div>--}%
                    %{--</div>--}%
                    <div class="form-group">
                        <div class="col-md-3 col-md-offset-6">
                            <g:submitButton class="btn btn-info" name="update" value="保存"/>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</g:form>
</body>
</html>
